package com.mifengs.mall.di.module;

import com.mifengs.commonbase.di.scope.FragmentScope;
import com.mifengs.mall.ui.web.WebFrgContract;
import com.mifengs.mall.ui.web.WebFrgPresent;

import dagger.Module;
import dagger.Provides;

/**
 * Created by lihaoqi on 2017/11/28.
 */
@Module
public class WebFrgModule {
    public final WebFrgContract.View mView;

    public WebFrgModule(WebFrgContract.View mView) {
        this.mView = mView;
    }

    @FragmentScope
    @Provides
    public WebFrgPresent providePresenter() {
        return new WebFrgPresent(mView);
    }
}
